package com.lingjtx.common.core.exception;

import com.lingjtx.common.core.ResponseCode;
import com.lingjtx.common.core.ResponseResult;

public class UnauthorizedException extends RuntimeException {

    private ResponseCode response;

    public UnauthorizedException(String message) {
        super(message);
    }

    public UnauthorizedException(String message, ResponseCode response) {
        super(message);
        this.response = response;
    }

    public ResponseCode getResponse() {
        return response;
    }
}
